/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.volatileshooter.state.input;

import com.volatileshooter.entity.EntityEvent;

/**
 *
 * @author Ahmed
 */
public class KeyboardEvent implements EntityEvent {
	
	private boolean keys[];

	public KeyboardEvent() {
		keys = new boolean[256];
	}
	
	public void setKeyDown(int key) {
		keys[key] = true;
	} 
	
	public void setKeyReleased(int key){
		keys[key] = false;
	}
	
	public boolean isKeyDown(int key) {
		return keys[key];
	}
	
}
